package com.xy.order.service.dto.impl;
import com.ruoyi.common.core.domain.order.dto.ServiceTypeDto;
import com.ruoyi.common.core.mapper.order.vo.SaleOrdersMapper;
import com.xy.order.service.dto.SaleOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SaleOrderServiceImpl implements SaleOrderService {

    @Autowired
    private SaleOrdersMapper saleOrdersMapper;


    /**
     * 查询所有可用的服务类型
     * @param dto 查询参数
     * @return
     */
    @Override
    public List<ServiceTypeDto> listAvailableServices(ServiceTypeDto dto) {
        return saleOrdersMapper.listAvailableServicesByDto(dto);
    }
}
